package com.hzqy.web.login;

import java.util.Observable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * epg_info存入session
 * @author dead
 *
 */
public class EpgInfoSession extends ObserverFather{
	private static final Log LOG = LogFactory.getLog(EpgInfoSession.class);
	
	public EpgInfoSession(HttpServletRequest request){
		super(request);
	}
	
	public void update(Observable o, Object arg) {
		super.update(o, arg);
		if(epgInfoVo != null){
			session.setAttribute(SessionKey.SESSION_EPGINFO_VO, epgInfoVo);
			session.setAttribute(SessionKey.SESSION_EPG_URL, epgInfoVo.getPage_url());
			session.setAttribute(SessionKey.SESSION_SERVERID, epgInfoVo.getOss_user_id());
			session.setAttribute(SessionKey.SESSION_PARTNER, epgInfoVo.getPartner());
			
		}
	}

}
